﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PcArduinoControl
{
	class CommandOutputDigital :
		Command
	{
		public byte Pin
		{
			get
			{
				return Arguments[0];
			}
		}

		public bool Value
		{
			get
			{
				return BitConverter.ToBoolean(Arguments, 1);
			}
		}

		internal CommandOutputDigital(byte pin, DigitalValue value) :
			base(CommandType.OutDig, pin, (byte)value)
		{
		}
	}
}
